gl renderer: Don't upload GL textures into the icon cache
authorTimm Bäder <mail@baedert.org>
Sat, 29 Jun 2019 05:13:10 +0000 (07:13 +0200)
committerTimm Bäder <mail@baedert.org>
Sat, 29 Jun 2019 05:15:43 +0000 (07:15 +0200)
gsk/gl/gskglrenderer.c

index 9a3bd13e760a205044b2ea024df1d0504d4dbcd2..0597785929f12f8026b1e92e0266e8bf31d895e9 100644 (file)
@@ -808,7 +808,8 @@ upload_texture (GskGLRenderer *self,
   int texture_id;
 
   if (texture->width <= 128 &&
-      texture->height <= 128)
+      texture->height <= 128 &&
+      !GDK_IS_GL_TEXTURE (texture))
     {
       graphene_rect_t trect;